<template>
    <div class="box">
        <div class="pic">
            <img src="../../assets/img/touxiang.jpg" alt="">
        </div>
        <p>{{yonghu}}</p>
    </div>
</template>

<script>
export default {
   data() {
       return {
           yonghu: '勇敢牛牛'
       }
   },
};
</script>

<style lang="scss" scoped>
.box{
    display: flex;
    height: 60px;
    align-items: center;
    .pic{
        height: 50px;
        width: 50px;
        margin-right: 20px;
        border-radius: 50%;
        background: #ddd;
        box-shadow:  0px 0px 5px #ddd;
        overflow: hidden;
        img{
            width: 100%;
            height: 100%;
        }
    }
}
</style>